package com.bdqn.Service.ContractApply.impl;

import com.bdqn.Service.ContractApply.ContractApplyService;
import com.bdqn.entity.ContractApply;
import com.bdqn.mapper.ContractApply.ContractApplyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ContractApplyServiceImpl implements ContractApplyService {

    @Autowired
    private ContractApplyMapper mapper;

    @Override
    public List<ContractApply> findAllByPage(int pageNum, int pageSize,ContractApply apply) {
        return mapper.findAllByPage(pageNum,pageSize,apply);
    }

    @Override
    public List<ContractApply> findAllByPage2(int pageNum, int pageSize, ContractApply apply) {
        return mapper.findAllByPage2(pageNum,pageSize,apply);
    }

    @Override
    public int getCount() {
        return mapper.getCount();
    }

    @Override
    public ContractApply findById(ContractApply contractApply) {
        return mapper.findById(contractApply);
    }

    @Override
    public boolean insert(ContractApply contractApply) {
        return mapper.insert(contractApply);
    }

    @Override
    public int SelMaxId() {
        return mapper.SelMaxId();
    }

    @Override
    public boolean updateStatus(ContractApply apply) {
        return mapper.updateStatus(apply);
    }

    @Override
    public ContractApply findConAppById(ContractApply apply) {
        return mapper.findConAppById(apply);
    }

    @Override
    public boolean Del(int id) {
        return mapper.Del(id);
    }
}
